package com.Qinmeiwei.web.validator;

import org.springframework.util.ClassUtils;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

public class IndexValidator implements Validator {

	@Override
	public boolean supports(Class<?> clazz) {
		return ClassUtils.isAssignable(clazz, Object.class);
	}

	@Override
	public void validate(Object arg0, Errors arg1) {
		
	}

}
